package com.centaline.androidsalesblog.api.bizcommon;

import com.centaline.androidsalesblog.api.BizCommonApi;
import com.centaline.androidsalesblog.model.responseobject.UserFeedBackRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 消息记录保存
 * Created by guilin on 16/5/10.
 */
public class MessageRecordApi extends BizCommonApi<UserFeedBackRo> {

    private String target;
    private String targetValue;
    private String rcSender;
    private String rcReceiver;
    private String msgType;
    private String msgContent;

    public MessageRecordApi(Class<?> tag, Class<UserFeedBackRo> aClass,
                            IResponseListener<UserFeedBackRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public void setTargetValue(String targetValue) {
        this.targetValue = targetValue;
    }

    public void setRcSender(String rcSender) {
        this.rcSender = rcSender;
    }

    public void setRcReceiver(String rcReceiver) {
        this.rcReceiver = rcReceiver;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    @Override
    protected void setParams() {
        super.setParams();
        putStringParams("Target", target);
        putStringParams("TargetValue", targetValue);
        putStringParams("RcSender", rcSender);
        putStringParams("RcReceiver", rcReceiver);
        putStringParams("MsgType", msgType);
        putStringParams("MsgContent", msgContent);
    }

    @Override
    protected String getPath() {
        return "MessageRecordRequest";
    }
}
